home *** CD-ROM | disk | FTP | other *** search
- function fShoot(size, xbend, ybend)
- {
- actualshots++;
- shots--;
- if(0 >= shots)
- {
- blnFire = false;
- reload.gotoAndPlay(2);
- shots = 0;
- }
- else
- {
- sndShot.play();
- sndSplat.play();
- rand = random(3);
- if(rand == 0)
- {
- duplicateMovieClip("splat","splat" + count,16384 + (count + 10));
- }
- if(rand == 1)
- {
- duplicateMovieClip("split","splat" + count,16384 + (count + 10));
- }
- if(rand == 2)
- {
- duplicateMovieClip("splut","splat" + count,16384 + (count + 10));
- }
- eval("splat" + count)._x = _xmouse;
- eval("splat" + count)._y = _ymouse;
- eval("splat" + count)._xscale = size * xbend / 2;
- eval("splat" + count)._yscale = size * ybend / 2;
- count++;
- }
- }
- function fMoveGun()
- {
- gun._rotation = _xmouse / 5 - 75;
- if(gun._rotation < -50)
- {
- gun._rotation = -50;
- }
- if(50 < gun._rotation)
- {
- gun._rotation = 50;
- }
- gun._yscale = (600 - _ymouse) / 5;
- if(gun._yscale < 60)
- {
- gun._yscale = 60;
- }
- if(100 < gun._yscale)
- {
- gun._yscale = 100;
- }
- }
- movieW = 800;
- movieH = 600;
- frRate = 18;
- blnFire = true;
- blnGameOver = false;
- level = 0;
- score = 0;
- totalshots = 0;
- shots = 0;
- hits = 0;
-